package cn.snmp.mutual.uk.stack;

import java.io.*;

public class AsnNull extends AsnObject {
    private static final String version_id = "@(#)$Id: AsnNull.java,v 3.9 2008/05/27 15:40:14 birgita Exp $ Copyright Westhawk Ltd";

    public AsnNull() {
        this.type = 5;
    }

    public AsnNull(final InputStream in, final int len) {
        this();
    }

    @Override
    public String toString() {
        return "AsnNull";
    }

    @Override
    void write(final OutputStream out, final int pos) throws IOException {
        this.AsnBuildHeader(out, (byte) 5, 0);
    }

    @Override
    public boolean equals(final Object anObject) {
        if (this == anObject) {
            return true;
        }
        if (anObject instanceof AsnNull) {
            final AsnNull anotherNull = (AsnNull) anObject;
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        final int h = 5;
        return h;
    }
}
